package com.engr.dto;

import com.engr.annotation.FieldInfo;
import lombok.Data;

import javax.persistence.Column;
import javax.validation.constraints.Email;
import java.io.Serializable;

/**
 * @program: train-project
 * @description: MemberDto 会员类
 * @author: lyx
 * @create: 2018-11-03
 **/
@Data
public class MemberDto implements Serializable {

    protected Long id = 0L;

    private String username;

    private String password;


    @Column(length = 64)
    @FieldInfo("QQ号")
    private String qq;

    private String qqOpenid;

    @Column(length = 64)
    @FieldInfo("微信号")
    private String wechat;

    private String wechatOpenid;

    @Column(length = 64)
    @FieldInfo("微博账号")
    private String weibo;
    private String weiboOpenid;
    @Column(length = 32)
    @Email
    @FieldInfo("邮箱")
    private String email;

    private boolean emailConfirmed;

    private boolean receieveNotify = false;

    @Column(length = 16)
    @FieldInfo("手机号")
    private String phone;
}
